package com.fengze.shop.web;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by 教师机01 on 2017/3/8 0008.
 *
 * http://wiselyman.iteye.com/blog/2214965
 *
 * http://blog.csdn.net/z69183787/article/details/41654603
 */
@Slf4j
@RestController
@RequestMapping("/index")
public class MainController {

    @GetMapping("/main")
    public String index(){
        return "index";
    }

    @GetMapping("/login")
    public String login(){
        return "login";
    }
}
